<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <Footer v-show="$route.meta.show"></Footer>
  </div>

</template>

<style lang="less">

</style>
<script>
    import Header from "./components/Header/Header";
    import Footer from "./components/Footer/Footer";


    export default {
        components: {
            Footer,
            Header
        },
        mounted() {
            //获取三级联动信息只在app实例挂载时执行一次，然后讲数据存储到store中，进行读取，优化了性能
            this.$store.dispatch('home/categoryList');

            // console.log('我是vue3 app')l
        },


    }
</script>